# Contributor: Allan McRae <mcrae_allan@hotmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=kakasi
pkgver=2.3.6
pkgrel=3
pkgdesc="Convert Kanji characters to Hiragana, Katakana or Romaji"
arch=('loong64' 'x86_64')
url="http://kakasi.namazu.org/"
license=('GPL')
source=("http://kakasi.namazu.org/stable/${pkgname}-${pkgver}.tar.xz")
depends=('sh')
sha512sums=('5fb8b9c1909f9cb0d1239a22277138563010dc96e0e5747646fa0cda4e6b70f6c9e7393b77132952ef0bd67b57d104e3a254ef376e91f4bcf6a160822cdb370a')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
